/**
 * @author Kristian Mandrup
 * @date June 9, 2009
 * @version 0.1
 * 
 * m3gen:: Example setup of generator for running testcases
 * 
 * 
 */

// create model used to parse the instance model and generate the resulting jsTree model 
var generatorModel = { 
	name: 'parsePersonModel', 
	ruleSetConfiguration: ruleSetConfig_person
}

var resolvedModel = personsModel;

// output the resolved model
var jsonFullModelStr = dojo.toJson(resolvedModel);


// create the full model
var fullModel_Person = {
    jsonInstanceModel: resolvedModel,
	generatorModel: generatorModel
	/* ,constructors: constructors Optionally set custom constructors */
};

// jsTree.plugins.generator.eventController.settings = jsTree.plugins.generator.defaults.eventSettings.warnOnly; 

// generate the jsTree model
m3generator = new m3gen.JsTreeModelGenerator(fullModel_Person);

m3generator.setInstanceModelOptions(fullModel_Person);

console.log('m3generator');
console.log(m3generator);
